package com.pla.persistence;

import java.sql.Blob;

/**
 * Java-Bean for the entity "Vine".
 * 
 * @author philipplang
 */
public class Vine {
	private long id;
	private String name;
	public String description;
	private Float ranking;
	private Blob image;
	private int age;

	public void setId(long id) {
		this.id = id;
	}

	public long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Float getRanking() {
		return ranking;
	}

	public void setRanking(Float ranking) {
		this.ranking = ranking;
	}

	public Blob getImage() {
		return image;
	}

	public void setImage(Blob image) {
		this.image = image;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getAge() {
		return age;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(getName()).append(" (").append(age).append(")");
		return sb.toString();
	}
}
